package rs.belex.belexdroid.beans;

import java.text.SimpleDateFormat;
import java.util.Date;

import rs.belex.belexdroid.beans.interfaces.StockQuote;

public class StockQuoteBean implements StockQuote {

	private static final long serialVersionUID = 5777638684541961721L;

	private Date date;

	private String symbol;
	private String companyName;
	private double lastTradedPrice;
	private double changePercent;
	private Double closingPrice;
	private Double openingPrice;
	private Double dayHighPrice;
	private Double dayLowPrice;
	private Integer buyingVolume;
	private Integer sellingVolume;
	private int volume;
	private double volumePrice;
	private String type;
	private String method;

	public String getFormatedDate() {
		SimpleDateFormat formatter = new SimpleDateFormat(
				"E, dd MMM yyyy");
		String calendar = (String) formatter.format(date);
		return calendar;
	}
	
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getSymbol() {
		return symbol;
	}

	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public double getLastTradedPrice() {
		return lastTradedPrice;
	}

	public void setLastTradedPrice(double lastTradedPrice) {
		this.lastTradedPrice = lastTradedPrice;
	}

	public double getChangePercent() {
		return changePercent;
	}

	public void setChangePercent(double changePercent) {
		this.changePercent = changePercent;
	}
	
	public Double getClosingPrice() {
		return closingPrice;
	}

	public void setClosingPrice(Double closingPrice) {
		this.closingPrice = closingPrice;
	}
	
	public Double getOpeningPrice() {
		return openingPrice;
	}

	public void setOpeningPrice(Double openingPrice) {
		this.openingPrice = openingPrice;
	}

	public Double getDayHighPrice() {
		return dayHighPrice;
	}

	public void setDayHighPrice(Double dayHighPrice) {
		this.dayHighPrice = dayHighPrice;
	}

	public Double getDayLowPrice() {
		return dayLowPrice;
	}

	public void setDayLowPrice(Double dayLowPrice) {
		this.dayLowPrice = dayLowPrice;
	}

	public Integer getBuyingVolume() {
		return buyingVolume;
	}

	public void setBuyingVolume(Integer buyingVolume) {
		this.buyingVolume = buyingVolume;
	}

	public Integer getSellingVolume() {
		return sellingVolume;
	}

	public void setSellingVolume(Integer sellingVolume) {
		this.sellingVolume = sellingVolume;
	}

	public int getVolume() {
		return volume;
	}

	public void setVolume(int volume) {
		this.volume = volume;
	}

	public double getVolumePrice() {
		return volumePrice;
	}

	public void setVolumePrice(double volumePrice) {
		this.volumePrice = volumePrice;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}
}
